package cn.rdq.iknessplatform.service.impl;

import cn.rdq.api.po.EpisodeSrc;
import cn.rdq.dao.EpisodesrcMapper;
import cn.rdq.iknessplatform.service.EpisodesrcService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EpisodesrcServiceImpl extends ServiceImpl<EpisodesrcMapper, EpisodeSrc> implements EpisodesrcService {
    @Override
    public List<EpisodeSrc> listByEpisodeId(Long episodeId) {
        QueryWrapper<EpisodeSrc> wrapper = new QueryWrapper<>();
        wrapper.eq("episode_id", episodeId);
        return list(wrapper);
    }
}
